package com.eight.cloud.openfeign.admin.factory;


import com.eight.cloud.openfeign.admin.api.TenantClient;
import com.eight.cloud.openfeign.admin.vo.TenantVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @ClassName: TenantFallbackFactory
 * @Author: TXC
 * @Date: 2024-11-15 14:39
 **/
@Component
@Slf4j
public class TenantFallbackFactory implements FallbackFactory<TenantClient> {
    @Override
    public TenantClient create(Throwable cause) {
        return new TenantClient() {
            @Override
            public TenantVo querySecretKey(String secretId) {
                return null;
            }

            @Override
            public TenantVo query(String uuid) {
                return null;
            }
        };
    }
}
